﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="WorkTimeLeave.aspx.cs" Inherits="WorkTime_WorkTimeLeave" %>

<%@ Register Src="WorkTime_YearHoliday_Days.ascx" TagName="WorkTime_YearHoliday_Days"
    TagPrefix="uc1" %>

<%@ Register Assembly="ZLTextBox" Namespace="BaseText" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Titile" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" Runat="Server">
 
        <InfoLight:WebDataSource ID="Master" runat="server" AllowAdd="True" AllowDelete="True"
            AllowPrint="True" AllowUpdate="True" AlwaysClose="False" AutoApply="True" AutoApplyForInsert="False"
            AutoRecordLock="False" AutoRecordLockMode="NoneReload" CacheDataSet="False" CommandName=""
            CommandText="" DataMember="WorkTime_Leave" Eof="True" KeyValues="" LastIndex="-1"
            Marker="'" MasterDataSource="" PacketRecords="100" QuotePrefix="[" QuoteSuffix="]"
            RemoteName="" SelectCommand="" TableName="" WebDataSetID="WMaster">
        </InfoLight:WebDataSource>
        <InfoLight:WebDataSource ID="WEmp" runat="server" SelectAlias="Usasdb" SelectCommand="SELECT     &#13;&#10;Employees.EmployeeID, &#13;&#10;Employees.EmpName, &#13;&#10;CompanyJob.JobName, &#13;&#10;Department.DepartmentName&#13;&#10;FROM         &#13;&#10;Employees INNER JOIN&#13;&#10;                      Department ON Employees.DepartmentId = Department.DepartmentId                   INNER JOIN&#13;&#10;                      CompanyJob ON Employees.JobId = CompanyJob.JobId&#13;&#10;WHERE     (Employees.EmpStatus = 1)" CacheDataSet="True">
        </InfoLight:WebDataSource>
        <InfoLight:WebDataSource ID="WLeaType" runat="server" AllowAdd="True" AllowDelete="True"
            AllowPrint="True" AllowUpdate="True" AlwaysClose="False" AutoApply="False" AutoApplyForInsert="False"
            AutoRecordLock="False" AutoRecordLockMode="NoneReload" CacheDataSet="True" CommandName=""
            CommandText="" Eof="True" KeyValues="" LastIndex="-1" Marker="'" MasterDataSource=""
            PacketRecords="100" QuotePrefix="[" QuoteSuffix="]" SelectAlias="Usasdb" SelectCommand="select WorkTime_SV_LeaveType.LeaveTypeId,WorkTime_SV_LeaveType.LeaveTypeName,WorkTime_SV_LeaveType.IsSalaryLeave from WorkTime_SV_LeaveType"
            TableName="">
        </InfoLight:WebDataSource>
        <InfoLight:WebDefault ID="WebDefault1" runat="server" DataMember="WorkTime_Leave"
            DataSourceID="Master">
            <Fields>
                <InfoLight:DefaultFieldItem DefaultValue="0" FieldName="LeaveId" />
                <InfoLight:DefaultFieldItem DefaultValue="GetDateFrom()" FieldName="DateFrom" />
                <InfoLight:DefaultFieldItem DefaultValue="GetDateTo()" FieldName="DateTo" />
                <InfoLight:DefaultFieldItem DefaultValue="GetEmployeeId()" FieldName="EmployeeId" />
            </Fields>
        </InfoLight:WebDefault>
          <InfoLight:WebValidate ID="WebValidate1" runat="server" AltRowCss="" DataMember="WorkTime_Leave"
            DataSourceID="Master" ForeColor="Red" RowCss="" ValidateStyle="ShowDialog"><Fields>
<InfoLight:ValidateFieldItem FieldName="LeaveId" CheckNull="True"></InfoLight:ValidateFieldItem>
<InfoLight:ValidateFieldItem FieldName="EmployeeId" CheckNull="True"></InfoLight:ValidateFieldItem>
<InfoLight:ValidateFieldItem FieldName="DateTo" Validate="ValidateDateTo()" 
                      WarningMsg="终止日期必须大于起始日期\r\n或是\r\n请假时间不在工作时间之内" CheckNull="True"></InfoLight:ValidateFieldItem>
<InfoLight:ValidateFieldItem FieldName="DateFrom" Validate="ValidateDateFrom()" 
                      WarningMsg="终止日期必须大于起始日期\r\n或是\r\n请假时间不在工作时间之内" CheckNull="True"></InfoLight:ValidateFieldItem>
</Fields>
</InfoLight:WebValidate>
   <FLTools:FLWebNavigator ID="FLWebNavigator1" runat="server"
            StatusStrip="WebStatusStrip1" ShowDataStyle="FormViewStyle" 
            BindingObject="WebFormView1" Width="100%" OnCommand="FLWebNavigator1_Command" 
            CtlHeight="25" CssClass="NavigatorBar" AutoSubmit="True">
            <NavControls>
                <InfoLight:ControlItem ControlName="Add" ControlText="add" ControlType="Image" ControlVisible="True"
                    DisenableImageUrl="../Image/UIPics/Add3_C.gif" ImageUrl="../Image/UIPics/Add_C.gif"
                    MouseOverImageUrl="../Image/UIPics/Add2_C.gif" Size="48">
                </InfoLight:ControlItem>
                <InfoLight:ControlItem ControlName="Update" ControlText="update" ControlType="Image"
                    ControlVisible="True" DisenableImageUrl="../Image/UIPics/Edit3_C.gif" ImageUrl="../Image/UIPics/Edit_C.gif"
                    MouseOverImageUrl="../Image/UIPics/Edit2_C.gif" Size="48">
                </InfoLight:ControlItem>
                <InfoLight:ControlItem ControlName="Delete" ControlText="delete" ControlType="Image"
                    ControlVisible="True" DisenableImageUrl="../Image/UIPics/Delete3_C.gif" ImageUrl="../Image/UIPics/Delete_C.gif"
                    MouseOverImageUrl="../Image/UIPics/Delete2_C.gif" Size="48">
                </InfoLight:ControlItem>
                <InfoLight:ControlItem ControlName="Apply" ControlType="Image" ControlVisible="True"
                    DisenableImageUrl="../Image/UIPics/Apply3_C.gif" ImageUrl="../Image/UIPics/Apply_C.gif"
                    MouseOverImageUrl="../Image/UIPics/Apply2_C.gif" Size="48">
                </InfoLight:ControlItem>
                <InfoLight:ControlItem ControlName="Abort" ControlType="Image" ControlVisible="True"
                    DisenableImageUrl="../Image/UIPics/Abort3_C.gif" ImageUrl="../Image/UIPics/Abort_C.gif"
                    MouseOverImageUrl="../Image/UIPics/Abort2_C.gif" Size="48">
                </InfoLight:ControlItem>
                <InfoLight:ControlItem ControlName="Query" ControlText="query" ControlType="Image"
                    ControlVisible="True" DisenableImageUrl="../image/uipics/Query3_C.gif" ImageUrl="../image/uipics/Query_C.gif"
                    MouseOverImageUrl="../image/uipics/Query2_C.gif" Size="48">
                </InfoLight:ControlItem>
                <InfoLight:ControlItem ControlName="Submit" ControlText="submit" ControlType="Image"
                    ControlVisible="True" DisenableImageUrl="" ImageUrl="../image/uipics/Submit_C.gif"
                    MouseOverImageUrl="../image/uipics/Submit2_C.gif" Size="48">
                </InfoLight:ControlItem>
                <InfoLight:ControlItem ControlName="Approve" ControlText="approve" ControlType="Image"
                    ControlVisible="True" DisenableImageUrl="" ImageUrl="../Image/UIPics/Approve_C.gif"
                    MouseOverImageUrl="../Image/UIPics/Approve2_C.gif" Size="48">
                </InfoLight:ControlItem>
                <InfoLight:ControlItem ControlName="Return" ControlText="return" ControlType="Image"
                    ControlVisible="True" DisenableImageUrl="" ImageUrl="../image/uipics/Return_C.gif"
                    MouseOverImageUrl="../image/uipics/Return2_C.gif" Size="48">
                </InfoLight:ControlItem>
                <InfoLight:ControlItem ControlName="Reject" ControlText="reject" ControlType="Image"
                    ControlVisible="True" DisenableImageUrl="" ImageUrl="../image/uipics/Reject_C.gif"
                    MouseOverImageUrl="../image/uipics/Reject2_C.gif" Size="48">
                </InfoLight:ControlItem>
                <InfoLight:ControlItem ControlName="Notify" ControlText="notify" ControlType="Image"
                    ControlVisible="True" DisenableImageUrl="" ImageUrl="../image/uipics/Notify_C.gif"
                    MouseOverImageUrl="../image/uipics/Notify2_C.gif" Size="48">
                </InfoLight:ControlItem>
                <InfoLight:ControlItem ControlName="FlowDelete" ControlText="flowdelete" ControlType="Image"
                    ControlVisible="True" DisenableImageUrl="" ImageUrl="../image/uipics/FlowDelete_C.gif"
                    MouseOverImageUrl="../image/uipics/FlowDelete2_C.gif" Size="70">
                </InfoLight:ControlItem>
                <InfoLight:ControlItem ControlName="Plus" ControlText="plus" ControlType="Image"
                    ControlVisible="True" DisenableImageUrl="" ImageUrl="../image/uipics/Plus_C.gif"
                    MouseOverImageUrl="../image/uipics/Plus2_C.gif" Size="48">
                </InfoLight:ControlItem>
                <InfoLight:ControlItem ControlName="Pause" ControlText="pause" ControlType="Image"
                    ControlVisible="True" DisenableImageUrl="" ImageUrl="../image/uipics/Pause_C.gif"
                    MouseOverImageUrl="../image/uipics/Pause2_C.gif" Size="48">
                </InfoLight:ControlItem>
                <InfoLight:ControlItem ControlName="Comment" ControlText="comment" ControlType="Image"
                    ControlVisible="True" DisenableImageUrl="" ImageUrl="../image/uipics/Comment_C.gif"
                    MouseOverImageUrl="../image/uipics/Comment2_C.gif" Size="48">
                </InfoLight:ControlItem>
            </NavControls>
            <FLStates>
                <FLTools:FLWebNavigatorStateItem StateText="Approve" VisibleControls="Approve;Return;Notify;Comment" />
                <FLTools:FLWebNavigatorStateItem StateText="Continue" VisibleControls="Submit;Notify;Comment" />
                <FLTools:FLWebNavigatorStateItem StateText="Inquery" VisibleControls="Comment" />
                <FLTools:FLWebNavigatorStateItem StateText="Notify" VisibleControls="Notify;FlowDelete;Comment" />
                <FLTools:FLWebNavigatorStateItem StateText="Return" VisibleControls="Submit;Reject;Notify" />
                <FLTools:FLWebNavigatorStateItem StateText="Submit" VisibleControls="Submit;Notify;Pause" />
                <FLTools:FLWebNavigatorStateItem StateText="None" VisibleControls="" />
                <FLTools:FLWebNavigatorStateItem StateText="Plus" VisibleControls="Approve;Notify;Comment" />
                <FLTools:FLWebNavigatorStateItem StateText="Lock" VisibleControls="Notify" />
                <FLTools:FLWebNavigatorStateItem StateText="FSubmit" VisibleControls="Submit;Notify" />
                <FLTools:FLWebNavigatorStateItem StateText="RSubmit" VisibleControls="Submit;Return;Notify" />
            </FLStates>
            <NavStates>
                <InfoLight:WebNavigatorStateItem EnableControls="First;Previous;Next;Last;Add;Update;Delete;Query;Print;Export"
                    StateText="Initial">
                </InfoLight:WebNavigatorStateItem>
                <InfoLight:WebNavigatorStateItem EnableControls="First;Previous;Next;Last;Add;Update;Delete;Query;Print;Export"
                    StateText="Browsed">
                </InfoLight:WebNavigatorStateItem>
                <InfoLight:WebNavigatorStateItem EnableControls="OK;Cancel;Apply;Abort" StateText="Inserting">
                </InfoLight:WebNavigatorStateItem>
                <InfoLight:WebNavigatorStateItem EnableControls="OK;Cancel;Apply;Abort" StateText="Editing">
                </InfoLight:WebNavigatorStateItem>
                <InfoLight:WebNavigatorStateItem EnableControls="" StateText="Applying">
                </InfoLight:WebNavigatorStateItem>
                <InfoLight:WebNavigatorStateItem EnableControls="First;Previous;Next;Last;Add;Update;Delete;Apply;Abort;Export"
                    StateText="Changing">
                </InfoLight:WebNavigatorStateItem>
                <InfoLight:WebNavigatorStateItem EnableControls="" StateText="Querying">
                </InfoLight:WebNavigatorStateItem>
                <InfoLight:WebNavigatorStateItem EnableControls="" StateText="Printing">
                </InfoLight:WebNavigatorStateItem>
                <InfoLight:WebNavigatorStateItem EnableControls="" StateText="Normal">
                </InfoLight:WebNavigatorStateItem>
                <InfoLight:WebNavigatorStateItem EnableControls="Add" StateText="Insert">
                </InfoLight:WebNavigatorStateItem>
                <InfoLight:WebNavigatorStateItem EnableControls="Update" StateText="Modify">
                </InfoLight:WebNavigatorStateItem>
                <InfoLight:WebNavigatorStateItem EnableControls="Query" StateText="Inquery">
                </InfoLight:WebNavigatorStateItem>
                <InfoLight:WebNavigatorStateItem EnableControls="Query;Update" StateText="Prepare">
                </InfoLight:WebNavigatorStateItem>
            </NavStates>
        </FLTools:FLWebNavigator>
         <InfoLight:WebFormView ID="WebFormView1" runat="server" DataSourceID="Master" 
            CellPadding="4" LayOutColNum="2" ForeColor="#333333" Width="100%" 
            BackColor="Silver" BorderColor="White" BorderStyle="Groove" BorderWidth="2px" 
            OnItemInserting="WebFormView1_ItemInserting" 
            OnDataBound="WebFormView1_DataBound" OnItemUpdating="WebFormView1_ItemUpdating">
            <FooterStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True" />
            <EditRowStyle BackColor="LightCyan" ForeColor="Blue" />
            <RowStyle BackColor="#EFF3FB" ForeColor="Navy" />
            <PagerStyle ForeColor="White" HorizontalAlign="Center" BackColor="PowderBlue" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <InsertRowStyle BackColor="LightCyan" ForeColor="Blue" />
            <EditItemTemplate>
                <table class="container_table" style="width: 100%">
                    <tr>
                        <td style="width: 100px">
                            <asp:Label ID="Label1" runat="server" Text="编号:" ForeColor="Red"></asp:Label>
                        </td>
                        <td style="width: 115px">
                            <asp:TextBox ID="LeaveIdTextBox" runat="server" Text='<%# Bind("LeaveId") %>' Width="140px" ReadOnly="True" TabIndex="100"></asp:TextBox></td>
                        <td style="width: 100px">
                            <asp:Label ID="Label2" runat="server" Text="员工编号:" ForeColor="Red"></asp:Label>
                        </td>
                        <td style="width: 388px" colspan="2">
                            <InfoLight:WebRefVal ID="WebRefVal1" runat="server" AllowAddData="False" BindingText=""
                                BindingValue='<%# Bind("EmployeeId") %>' ButtonImageUrl="../Image/refval/RefVal.gif"
                                DataBindingField="EmployeeId" DataSourceID="WEmp" DataTextField="EmpName" DataValueField="EmployeeID"
                                MultiLanguage="False" PostBackButonClick="False" ReadOnly="False" ResxDataSet=""
                                ResxFilePath="" UpdatePanelID="" UseButtonImage="True" Width="140px" 
                                OpenRefHeight="550">
                                <Columns>
                                    <InfoLight:WebRefColumn ColumnName="EmployeeID" HeadText="员工编号" Width="100" />
                                    <InfoLight:WebRefColumn ColumnName="EmpName" HeadText="员工姓名" Width="100" />
                                    <InfoLight:WebRefColumn ColumnName="JobName" HeadText="职位" Width="100" />
                                    <InfoLight:WebRefColumn ColumnName="DepartmentName" HeadText="部门名称" Width="100" />
                                </Columns>
                            </InfoLight:WebRefVal>
                            </td>
                    </tr>                    
                    <tr>
                        <td style="height: 26px; width: 100px;">
                            <asp:Label ID="Label3" runat="server" Text="请假种类:"></asp:Label>
                        </td>
                        <td style="width: 115px; height: 26px;">
                            <InfoLight:WebDropDownList ID="LeaveTypeIdwddl" runat="server" AutoInsertEmptyData="False"
                                DriverObject="" Filter="" FilterObject="" SelectedValue='<%# Bind("LeaveTypeId") %>'
                                Width="140px" DataSourceID="WLeaType" DataTextField="LeaveTypeName" 
                                DataValueField="LeaveTypeId">
                        </InfoLight:WebDropDownList></td>
                        <td style="width: 55px; height: 26px;">
                            <asp:Label ID="Label4" runat="server" Text="请假时数:"></asp:Label>
                        </td>
                        <td style="width: 388px; height: 26px;" colspan="2">
                            <cc1:ZLTextBox ID="ZLTextBox5" runat="server" FloatLength="2" InputType="number"
                                IsDisplayTime="True" Language="Chinese" onblurCssName="" ondrop="return regInput(this,/^[0-9]*$/,event.dataTransfer.getData('Text'))"
                                onfocus="this.style.imeMode='disabled';" onfocusCssName="" onkeypress="return regInput(this,&#9;/^[0-9]*$/,String.fromCharCode(event.keyCode))"
                                onpaste="return regInput(this,/^[0-9]*$/,window.clipboardData.getData('Text'))"
                                ShowMessage="" Text='<%# Bind("LeaHours") %>' textValue="" Width="140px" MaxLength="4" ReadOnly="True"></cc1:ZLTextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 100px">
                            <asp:Label ID="Label5" runat="server" Text="起始日期:"></asp:Label>
                        </td>
                        <td style="width: 115px">
                                                          
<asp:TextBox ID="ZLTextBox1" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" 
                                Text='<%# Bind("DateFrom") %>' CssClass="Wdate" Width="140px"/></asp:TextBox>

</td>
                        <td style="width: 100px">
                            <asp:Label ID="Label6" runat="server" Text="终止日期:"></asp:Label>
                        </td>
                        <td colspan="2" style="table-layout: fixed">
                        
                                                                         
<asp:TextBox ID="ZLTextBox2" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" 
                                Text='<%# Bind("DateTo") %>' CssClass="Wdate" Width="140px"/></asp:TextBox>

                           </td>
                    </tr>
                    <tr>
                        <td style="width: 100px">
                            <asp:Label ID="Label7" runat="server" Text="请假原因:"></asp:Label>
                        </td>
                        <td colspan="4">
                            <asp:TextBox ID="CausationTextBox" runat="server" Text='<%# Bind("Causation") %>' Width="440px" TabIndex="6" MaxLength="95"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 100px">
                            <asp:Label ID="Label8" runat="server" Text="备注:"></asp:Label>
                        </td>
                        <td colspan="4">
                            <asp:TextBox ID="RemarkTextBox" runat="server" Text='<%# Bind("Remark") %>' Width="440px" TabIndex="7" MaxLength="95"></asp:TextBox></td>
                    </tr>
                    </table> 
      

            </EditItemTemplate>
            <InsertItemTemplate><table class="container_table" style="width: 100%">
                <tr>
                    <td style="width: 62px">
                            <asp:Label ID="Label9" runat="server" Text="编号:" ForeColor="Red"></asp:Label></td>
                    <td style="width: 127px">
                            <asp:TextBox ID="LeaveIdTextBox" runat="server" Text='<%# Bind("LeaveId") %>' 
                                Width="140px" ReadOnly="True" TabIndex="100"></asp:TextBox></td>
                    <td style="width: 64px">
                            <asp:Label ID="Label10" runat="server" Text="员工编号:" ForeColor="Red"></asp:Label></td>
                    <td style="width: 388px" colspan="2">
                            <InfoLight:WebRefVal ID="WebRefVal1" runat="server" AllowAddData="False" BindingText=""
                                BindingValue='<%# Bind("EmployeeId") %>' ButtonImageUrl="../Image/refval/RefVal.gif"
                                DataBindingField="EmployeeId" DataSourceID="WEmp" DataTextField="EmpName" DataValueField="EmployeeID"
                                MultiLanguage="False" PostBackButonClick="False" ReadOnly="False" ResxDataSet=""
                                ResxFilePath="" UpdatePanelID="" UseButtonImage="True" Width="140px" 
                                OpenRefHeight="550">
                                <Columns>
                                    <InfoLight:WebRefColumn ColumnName="EmployeeID" HeadText="员工编号" Width="100" />
                                    <InfoLight:WebRefColumn ColumnName="EmpName" HeadText="员工姓名" Width="100" />
                                    <InfoLight:WebRefColumn ColumnName="JobName" HeadText="职位" Width="100" />
                                    <InfoLight:WebRefColumn ColumnName="DepartmentName" HeadText="部门名称" Width="100" />
                                </Columns>
                            </InfoLight:WebRefVal>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td style="height: 26px; width: 62px;">
                            <asp:Label ID="Label11" runat="server" Text="请假种类:"></asp:Label></td>
                    <td style="width: 127px; height: 26px;">
                        <InfoLight:WebDropDownList ID="LeaveTypeIdwddl" runat="server" AutoInsertEmptyData="False"
                                DriverObject="" Filter="" FilterObject="" SelectedValue='<%# Bind("LeaveTypeId") %>'
                                Width="140px" DataSourceID="WLeaType" DataTextField="LeaveTypeName" 
                            DataValueField="LeaveTypeId">
                        </InfoLight:WebDropDownList></td>
                    <td style="width: 64px; height: 26px;">
                            <asp:Label ID="Label12" runat="server" Text="请假时数:"></asp:Label>&nbsp;</td>
                    <td style="width: 388px; height: 26px;" colspan="2">
                            <asp:TextBox ID="LeaHoursTextBox" runat="server" Text='<%# Bind("LeaHours") %>' 
                                Width="140px" ReadOnly="True" MaxLength="1000"></asp:TextBox>&nbsp;</td>
                </tr>
                <tr>
                    <td style="width: 62px">
                            <asp:Label ID="Label13" runat="server" Text="起始日期:"></asp:Label></td>
                    <td style="width: 127px">
                                                                     
<asp:TextBox ID="ZLTextBox3" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false,readOnly:true})" 
                            Text='<%# Bind("DateFrom") %>' CssClass="Wdate" Width="140px"/></asp:TextBox>

</td>
                    <td style="width: 64px">
                            <asp:Label ID="Label14" runat="server" Text="终止日期:"></asp:Label>&nbsp;</td>
                    <td colspan="2" style="table-layout: fixed">
                    
                                                                                   
<asp:TextBox ID="ZLTextBox4" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false,readOnly:true})" 
                            Text='<%# Bind("DateTo") %>' CssClass="Wdate" Width="140px"/></asp:TextBox>

</td>
                </tr>
                <tr>
                    <td style="width: 62px">
                            <asp:Label ID="Label15" runat="server" Text="请假原因:"></asp:Label></td>
                    <td colspan="4">
                            <asp:TextBox ID="CausationTextBox" runat="server" Text='<%# Bind("Causation") %>' Width="440px" MaxLength="95"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="width: 62px">
                            <asp:Label ID="Label16" runat="server" Text="备注:"></asp:Label>&nbsp;</td>
                    <td colspan="4">
                            <asp:TextBox ID="RemarkTextBox" runat="server" Text='<%# Bind("Remark") %>' Width="440px" MaxLength="95"></asp:TextBox></td>
                </tr>
            </table>

            </InsertItemTemplate>
            <ItemTemplate>
                 <table class="container_table" style="width: 600px">
                    <tr>
                        <td style="width: 100px">
                            <asp:Label ID="Label1" runat="server" Text="编号:"></asp:Label></td>
                        <td style="width: 150px">
                        
                            <asp:TextBox ID="LeaveIdTextBox" runat="server" Text='<%# Bind("LeaveId") %>' Width="120px" ReadOnly="True"></asp:TextBox></td>
                        <td style="width: 100px">
                            &nbsp;</td>
                        <td style="width: 80px">
                            　</td>
                    </tr>
                    <tr>
                        <td style="width: 100px; height: 20px">
                            <asp:Label ID="Label2" runat="server" Text="员工编号:"></asp:Label></td>
                        <td style="width: 150px; height: 20px;">
                          <div   style= "display:none "  >  <asp:TextBox ID="tbEmployeeId" runat="server" ReadOnly="True" Text='<%# Bind("EmployeeId") %>' Width="10px"
                                ></asp:TextBox></div>
                           <InfoLight:WebRefVal ID="tbEmployeeId2" runat="server" AllowAddData="False" BindingText=""
                                BindingValue='<%# Bind("EmployeeId") %>' ButtonImageUrl="../Image/refval/RefVal.gif"
                                DataBindingField="EmployeeId" DataSourceID="WEmp" DataTextField="EmpName" DataValueField="EmployeeID"
                                MultiLanguage="False" PostBackButonClick="False" ReadOnly="True" ResxDataSet="" 
                                ResxFilePath="" UpdatePanelID="" UseButtonImage="True" Width="120px" OpenRefHeight="550" Caption="">
                                <Columns>
                                    <InfoLight:WebRefColumn ColumnName="EmployeeID" HeadText="员工编号" Width="100" />
                                    <InfoLight:WebRefColumn ColumnName="EmpName" HeadText="员工姓名" Width="100" />
                                    <InfoLight:WebRefColumn ColumnName="JobName" HeadText="职位" Width="100" />
                                    <InfoLight:WebRefColumn ColumnName="DepartmentName" HeadText="部门名称" Width="100" />
                                </Columns>
                            </InfoLight:WebRefVal>      
                                </td>
                        <td style="width: 100px; height: 20px;">
                            <asp:Label ID="Label22" runat="server" Text="所属部门:" Visible='<%#IsDepVisible(Eval("DepartmentName").ToString()) %>'></asp:Label></td>
                        <td style="width: 80px; height: 20px;">
                            <asp:TextBox ID="TextBox1" runat="server" ReadOnly="True" Visible='<%#IsDepVisible(Eval("DepartmentName").ToString()) %>' Text='<%# Eval("DepartmentName") %>' Width="168px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td style="height: 26px; width: 100px;">
                            <asp:Label ID="Label3" runat="server" Text="请假种类:"></asp:Label></td>
                        <td style="width: 150px; height: 26px;">
                            <InfoLight:WebDropDownList ID="LeaveTypeIdwddl" runat="server" AutoInsertEmptyData="False"
                                DriverObject="" Filter="" FilterObject="" SelectedValue='<%# Bind("LeaveTypeId") %>'
                                Width="128px" Enabled="False" DataSourceID="WLeaType" DataTextField="LeaveTypeName" DataValueField="LeaveTypeId" OnlyShowSelectText="False">
                            </InfoLight:WebDropDownList></td>
                        <td style="width: 100px; height: 26px;">
                            <asp:Label ID="Label4" runat="server" Text="请假时数:"></asp:Label>
                        </td>
                        <td style="width: 80px; height: 26px;">
                            <asp:TextBox ID="LeaHoursTextBox" runat="server" Text='<%# Bind("LeaHours") %>' Width="120px" ReadOnly="True"></asp:TextBox>
                            <div   style= "display:none " > <InfoLight:WebDropDownList ID="WebDropDownList2" runat="server" DataSourceID="WLeaType" SelectedValue='<%# Eval("LeaveTypeId") %>'
                               DataValueField="LeaveTypeId" DataTextField="IsSalaryLeave"> </InfoLight:WebDropDownList></div>
                       </td>
                    </tr>
                    <tr>
                        <td style="width: 100px; height: 32px;">
                            <asp:Label ID="Label5" runat="server" Text="起始日期:"></asp:Label></td>
                        <td style="width: 150px; height: 32px;">
                            <cc1:ZLTextBox ID="ZLTextBox1" runat="server" FloatLength="2" InputType="date" IsDisplayTime="True"
                                Language="Chinese" onblurCssName="" onfocusCssName="" ShowMessage="" Text='<%# Bind("DateFrom") %>'
                                textValue="" Enabled="False" ReadOnly="True" Width="120px"></cc1:ZLTextBox></td>
                        <td style="width: 100px; height: 32px;">
                            <asp:Label ID="Label6" runat="server" Text="终止日期:"></asp:Label>
                        </td>
                        <td style="width: 80px; height: 32px;">
                            <cc1:ZLTextBox ID="ZLTextBox2" runat="server" FloatLength="2" InputType="date" IsDisplayTime="True"
                                Language="Chinese" onblurCssName="" onfocusCssName="" ShowMessage="" Text='<%# Bind("DateTo") %>'
                                textValue="" Enabled="False" ReadOnly="True" Width="120px"></cc1:ZLTextBox></td>
                    </tr>
                    <tr>
                        <td style=" height: 26px;">
                            <asp:Label ID="Label7" runat="server" Text="请假原因:"></asp:Label></td>
                        <td colspan="3" style="height: 26px">
                            <asp:TextBox ID="CausationTextBox" runat="server" Text='<%# Bind("Causation") %>' Width="500px" ReadOnly="True" Height="16px"></asp:TextBox></td>
                    </tr>
                     <tr>
                         <td style=" height: 26px;">
                            <asp:Label ID="Label8" runat="server" Text="备注:"></asp:Label></td>
                         <td colspan="3" style="height: 26px">
                            <asp:TextBox ID="RemarkTextBox" runat="server" Text='<%# Bind("Remark") %>' Width="500px" ReadOnly="True" Height="16px"></asp:TextBox></td>
                     </tr>
                    <tr>
                        <td style=" height: 26px;">
                            </td>
                        <td colspan="3" style="height: 30px">
                            <asp:Button ID="Button1" runat="server" OnClick="Button1_Click1" Text="请假数据传至薪假数据表" Visible="<%# Disp() %>" Width="248px" /></td>
                    </tr>
                    </table>
                                
            </ItemTemplate>
            <Fields>
                <InfoLight:FormViewField ControlID="LeaveIdTextBox" FieldName="LeaveId" />
                <InfoLight:FormViewField ControlID="ZLTextBox3" FieldName="DateFrom" />
                <InfoLight:FormViewField ControlID="ZLTextBox4" FieldName="DateTo" />
                <InfoLight:FormViewField ControlID="WebRefVal1" FieldName="EmployeeId" />
            </Fields>
        </InfoLight:WebFormView>
        <uc1:WorkTime_YearHoliday_Days ID="WorkTime_YearHoliday_Days1" runat="server" />
</asp:Content>

